﻿/*+===================================================================
File:      BossThree.h

Summary:   Định nghĩa lớp CBossThree
===================================================================+*/

#ifndef _BOSSTHREE_H_
#define _BOSSTHREE_H_

#include "GameObject.h"
#include "BossThreeChild.h"
#include "Bill.h"

/*C+==================================================================
Class:    CBossThree

Summary:  Lớp CBossThree miêu tả đối tượng boss màn 3.
==================================================================-C*/
static D3DXVECTOR2 BOSS3_POS[9]{
	D3DXVECTOR2(9848.0f, 384.0f),
	D3DXVECTOR2(9928.0f, 384.0f),
	D3DXVECTOR2(10008.0f, 384.0f),
	D3DXVECTOR2(9848.0f, 320.f),
	D3DXVECTOR2(9928.0f, 320.f),
	D3DXVECTOR2(10008.0f, 320.f),
	D3DXVECTOR2(9848.0f, 256.0f),
	D3DXVECTOR2(9928.0f, 256.0f),
	D3DXVECTOR2(10008.0f, 256.0f)
};
class CBossThree : public CMoveableObject
{
private:
	int m_nStatus;
	//CBossThreeChild* children[8];
	CGun* m_pGun;

	//int m_nCurIndexChild;

	float m_fTimeChange;
	float m_fTimeFire;

	int m_nChildRelease;
public:
	CBossThree(D3DXVECTOR2 pos, int id, int typeID);
	~CBossThree();

	void Update(float timeFrame);

	void UpdateCollision(vector<CGameObject*> vecGameObjs, float timeFrame);

	void UpdateBox(float timeFrame);

	void Draw();

	bool Kill();

	void Explode(float timeFrame);
};

#endif